adding and subtracting sinusoidal waveform